from django.conf.urls import url, include
from django.contrib import admin
from . import views

urlpatterns = [
    # url类关键字传参
    url(r'^get/(?P<province>\w+)&(?P<phone>[1][3,5,5,7,8]\d{9})/$', views.get),
    # url查询字符串传参
    url(r'^get_/$', views.get_),
    # 请求体表单传参
    url(r'^post/$', views.post),
    # post的非表单传参(json/xml)
    url(r'^post_json/$', views.post_json),
    # 两种json返回
    url(r'json_response/$',views.json_response),
    url(r'http_json_response',views.http_json_response),

    # 测试axios
    url(r'^axios_get/$',views.axios_get),
    url(r'^axios_post/$',views.axios_post)
]
